package com.hdoit.apollo.logical.stock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.cargo.model.Cargo;
import com.hdoit.apollo.logical.stock.model.OutStockCollocation;
import com.hdoit.apollo.logical.viewmodel.billing.BillingSearch;
import com.hdoit.apollo.logical.viewmodel.billing.BillingStat;
import com.hdoit.apollo.logical.viewmodel.billing.BillingDetailed;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 14:16:33
 * @comment
 */
@Repository(value="outStockCollocationMapper")
public interface OutStockCollocationMapper extends IMapper<OutStockCollocation>{
	List<BillingDetailed> queryListByDetailed(@Param("search") BillingSearch search,@Param("pager") PagerModel pagerModel);
	
	BillingStat querySummaryStat(@Param("search") BillingSearch search); 
	
	int queryCountByDetailed(@Param("search") BillingSearch search);
	
	List<BillingStat> queryListBySummary(@Param("search") BillingSearch search,@Param("pager") PagerModel pagerModel);
	
	int queryCountBySummary(@Param("search") BillingSearch search);

	OutStockCollocation queryModelByBilling(@Param("collocationId")String collocationId,@Param("billingId")String billingId);

	List<Cargo> querySaleCargoList(@Param("search") BillingSearch search);
}